<?php

namespace app\np\behavior;

use think\Cache;
use think\Session;
use think\Config;

class Auth
{

    public function run(&$params)
    {

        $sid = $params->param("sid");
        if(!empty($sid)){
            w_s("sid",$sid);
        }

        if(!Cache::has($sid)){
            exit(json_encode(resJson(102,"请重新登录")->getData()));
        }

    }

}
